package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * 功能:
 * 作者：jian
 * 日期：2024/3/25 13:14
 */
@Data
public class News {

    @TableId(type= IdType.AUTO)
    private Integer id;

    private String title;
    private String description;
    private String content;
    private Integer authorid;
    private String time;



    @TableField(exist = false)
    private String author;


}   